<template>
  <div class="wrapper">
    <goods-item v-for="item in goodsList" :goods-item="item"/>
  </div>
</template>

<script>
import GoodsItem from '@/components/content/goods/GoodsItem'

export default {
  name: 'GoodsList',
  components: { GoodsItem },
  props: {
    goodsList: {
      type: Array,
      default () {
        return []
      }
    }
  },
  inject: [ 'bookLen' ],
  created () {
    // console.log(this.bookLen.value)
  }
}
</script>

<style scoped>
.wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
</style>
